﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using ManaSky.Core.Middleware;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace ManaSky.Core
{
    public static class ManaSkyCoreMiddleware
    {
        /// <summary>
        /// 自定义中间件
        /// </summary>
        /// <param name="app"></param>
        public static void UseManaSkyCoreMiddlewaree(this IApplicationBuilder app)
        {
            //自定义异常中间件
            app.UseMiddleware<CustomerExceptionMiddleware>();
        }
    }
}
